#include "widget.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    try
    {
        Widget w;
        w.show();
    }
    catch (std::runtime_error& e)
    {
        qDebug() << "运行时候的错误:" <<e.what();
    }
    catch(std::exception& e)
    {
        qDebug()  <<"其他类型的错误:" << e.what();
    }



    return a.exec();
}
